package ddb.tasktracker.intf.context.http;

import java.util.List;

public class FileStoreInfoArray {

	private FileStoreInfo[] files;

	public FileStoreInfo[] getFiles() {
		return files;
	}

	public void setFiles(FileStoreInfo[] files) {
		this.files = files;
	}

	public static FileStoreInfoArray create(List<FileStoreInfo> files) {
		FileStoreInfoArray array = new FileStoreInfoArray();
		array.setFiles(files.toArray(new FileStoreInfo[0]));
		return array;
	}
	public static FileStoreInfoArray create(FileStoreInfo[] files) {
		FileStoreInfoArray array = new FileStoreInfoArray();
		array.setFiles(files);
		return array;
	}

	public static FileStoreInfoArray empty() {
		FileStoreInfoArray array = new FileStoreInfoArray();
		array.setFiles(new FileStoreInfo[0]);
		return array;
	}
}
